.class final Lcom/ninesky/browser/bn;
.super Landroid/content/BroadcastReceiver;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/BrowserActivity;


# direct methods
.method constructor <init>(Lcom/ninesky/browser/BrowserActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/bn;->a:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 3

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "networkInfo"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/net/NetworkInfo;

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->getTypeName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->getSubtypeName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    if-eqz v2, :cond_0

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    :cond_0
    iget-object v1, p0, Lcom/ninesky/browser/bn;->a:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->isAvailable()Z

    move-result v0

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Z)V

    :cond_1
    return-void
.end method
